package mk.jug.academy.testing.factory;

import java.util.UUID;

import mk.jug.academy.model.Supporter;


/**
 * Factory for creating instances for testing purposes.
 *
 * @author Ice.Penov
 */
public final class SupporterTestFactory {
	
	/** No instantiation. Static usage only */
	private SupporterTestFactory() {;}
	
	/** Creates a random {@link Supporter} instance, for testing purposes */	
	public static Supporter createSupporter() {
		Supporter supporter = new Supporter();
		supporter.setFirstName("firstName" + UUID.randomUUID());
		supporter.setLastName("lastName" + UUID.randomUUID());
		supporter.setEmail(UUID.randomUUID() + "@example.com");
		supporter.setPassword("password");
		return supporter;
	}

}